﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DynaPrecision.RandomNumberGenerator
{
	public static class SingletonUniformRandomProvider
	{
		static Random _singletonRandomProvider = new Random();
		public static T Next<T>()
		{
			return DefaultValueProvider<T>.GetValueFromDouble(_singletonRandomProvider.NextDouble());
		}
		public static double NextDouble()
		{
			return _singletonRandomProvider.NextDouble();
		}
	}
}
